<script setup>
import { useBanner } from './banner'
const { bannerList } = useBanner()
</script>

<template>
  <div class="banner">
  <el-carousel height="500px">
    <el-carousel-item v-for="item in bannerList" :key="item.id">
      <img :src="item.imgUrl" alt="">
    </el-carousel-item>
  </el-carousel>
  </div>
</template>

<style scoped lang="scss">
.banner {
  width: 1240px;
  margin: 0 auto;
  height: 500px;
  position:relative;
  top: 0;
  z-index:90;

  img {
    width: 100%;
    height: 500px;
  }

}
</style>